from django.conf.urls import include, url
# from django.contrib import admin

urlpatterns = [
    # Examples:
    # url(r'^$', 'AirCleanerServer.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    # url(r'^admin/', include(admin.site.urls)),
    # 默认的首页url
    url(r'^$', 'aircleaner.views.index'),
    url(r'^index', 'aircleaner.views.index'),

    # 空气质量监测显示页面
    url(r'^air_quality', 'aircleaner.views.air_quality'),

    # 系统介绍页面
    url(r'^system_desc', 'aircleaner.views.system_description'),

    # 设置空气净化器的电源状态
    url(r'^set_ac_pwr_status', 'aircleaner.views.set_air_cleaner_pwr_status'),

    # web页面获取传感器的数据
    url(r'^get_data', 'aircleaner.views.get_sensor_data'),

    # 更新传感器数据
    url(r'^update_data', 'aircleaner.views.update_sensor_data'),

    # 获取空气净化器电源状态
    url(r'^get_ac_pwr_status', 'aircleaner.views.get_air_cleaner_pwr_status'),
]
